// 角色相关
import request from '@/utils/request'

// 角色列表
export function getRoleListApi(data) {
    return request({
        url: '/api/auth.role/index',
        method: 'post',
        data
    })
}

// 添加角色
export function createRoleApi(data) {
    return request({
      url: "/api/auth.role/create",
      method: "post",
      data,
    });
}

// 读取角色信息
export function readRoleApi(data) {
    return request({
      url: "/api/auth.role/read",
      method: "post",
      data,
    });
}

// 编辑角色
export function saveRoleApi(data) {
    return request({
      url: "/api/auth.role/save",
      method: "post",
      data,
    });
}

// 删除角色
export function deleteRoleApi(data) {
    return request({
        url: '/api/ucenter.role/delete',
        method: 'post',
        data
    })
}